/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.warehouse.entity;

import com.thinkgem.jeesite.modules.warehouse.entity.Material;

import java.util.Date;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Office;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * MaterialRecordEntity
 * @author qrg
 * @version 2017-03-27
 */
public class MaterialRecord extends DataEntity<MaterialRecord> {
	
	private static final long serialVersionUID = 1L;
	private Material material;		// material
	private String inOut;		// in_out
	private Double count;		// count
	private Office office;		// office
	
	private Date beginDate;		// 开始日期
	private Date endDate;		// 结束日期
	
	public MaterialRecord() {
		super();
	}

	public MaterialRecord(String id){
		super(id);
	}

	@NotNull(message="material不能为空")
	public Material getMaterial() {
		return material;
	}

	public void setMaterial(Material material) {
		this.material = material;
	}
	
	@Length(min=0, max=100, message="in_out长度必须介于 0 和 100 之间")
	public String getInOut() {
		return inOut;
	}

	public void setInOut(String inOut) {
		this.inOut = inOut;
	}
	
	public Double getCount() {
		return count;
	}

	public void setCount(Double count) {
		this.count = count;
	}
	
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	
}